/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tenorclient;

import TransportLayer.IDataTransportable;
import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Tomasz Nowak
 */
public class Program
{
	public static void main( String args[] ) throws UnknownHostException
	{
		Creditentials creditentials = Creditentials.getInstance();
		creditentials.setCreditentials(
						new Contact(InetAddress.getLocalHost(), 50002, "Ja"), "haslo");
		try
		{
			Contacts contacts = Contacts.getInstance();
			contacts.getContacts().add(new Contact(InetAddress.getLocalHost(),
																						 50005, "testclient"));

		}
		catch ( UnknownHostException e )
		{
		}

		java.awt.EventQueue.invokeLater(new Runnable()
		{
			public void run()
			{
				MainJFrame.getInstance();
			}
		});
	}
}
